<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>19_RegExp-正则规则的活or</title>
</head>
<body>

  <script>

    const str = "abaabcdsfaabccbafdghsdaaaaaaa"

    const reg = /(abc|cba|aa){2,}/ig
    console.log(str.match(reg));

  </script>
  
</body>
</html>